package com.hz.zbl.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-service")
public interface TeacherApi {

    @GetMapping("/user/all-teachers")
    String allTeacher();

    @PostMapping("/user/teacher-info")
    String teacherInfo(@RequestParam("teacher_id") int teacher_id);
}
